* relabel the turnout in june as pre-test --------------------------------------
label variable turnout_jun         "Pre-test"

* run the regressions models and save them to memory ---------------------------

eststo: reg turnout_nov treatment turnout_jun recruitment_pool,                 ///
cluster(province)

eststo: reg turnout_nov treatment turnout_jun recruitment_pool                  ///
treatment_nonterror casualty_district kurdish_district akp_district             ///
higher_education min_margin, cluster(province)

eststo: reg turnout_nov treatment treatment_multi turnout_jun recruitment_pool, ///
cluster(province)

eststo: reg turnout_nov treatment treatment_multi turnout_jun recruitment_pool  ///
treatment_nonterror casualty_district kurdish_district akp_district             ///
higher_education min_margin, cluster(province)

* print the results ------------------------------------------------------------

esttab,                                                                         ///
replace se b(3) se(3) stats(N vce r2) label nodepvars nonotes nomtitles         ///
order(treatment treatment_multi)                                                ///
substitute(vce "Clusters" cluster "81")                                         ///
title("Table S10: Regression models of electoral turnout")

* save the results -------------------------------------------------------------

esttab using "./tables/table_s10.tex",                                          ///
replace se b(3) se(3) stats(N vce r2) label nodepvars nonotes nomtitles         ///
order(treatment treatment_multi)                                                ///
substitute(vce "Clusters" cluster "81")                                         ///
title("Regression models of electoral turnout")

* remove the models from memory ------------------------------------------------

eststo clear

* relabel turnout back to original ---------------------------------------------
label variable turnout_jun         "Turnout"